/**
 * @IMediatorCreateEvent.as
 * 
 * @author sodaChen mail:asframe@163.com
 * @version 1.0
 * <br>Copyright (C), 2010 asFrame.com
 * <br>This program is protected by copyright laws.
 * <br>Program Name:AStruts2
 * <br>Date:2012-4-21
 */
package com.asframe.astruts2.interfaces
{
	import com.asframe.astruts2.beans.MediatorBean;
	import com.asframe.astruts2.context.IAStrutsContext;

	/**
	 * Mediator创建后触发的接口
	 * @author sodaChen
	 * @Date:2012-4-21
	 */
	public interface IMediatorCreateEvent
	{
		/**
		 * 是否符合该对象处理，true则会自动调用mediatorCreateEvent进行相关处理
		 * @param mediator
		 * @return 
		 * 
		 */		
		function isTally(mediator:*):Boolean;
		/**
		 * 对mediator进行相关的初始化操作 
		 * @param view view实例
		 * @param viewBean view的相关参数
		 * @param astrutsInit astruts的一些对象
		 * 
		 */		
		function mediatorCreateEvent(view:*,mediator:*,mediatorBean:MediatorBean,context:IAStrutsContext):void;
	}
}
